package com.iot.ic.service;

import java.util.List;
import java.util.Map;

import com.iot.ic.model.ManualIntervention;
import com.iot.ic.model.RefereeInfo;
import com.iot.ic.model.TeamInfo;





/**
 * Created by xiuge on 2017/2/20.
 */
public interface ManualInterventionService {
	
	 /**
	  * 添加人工干预信息
	 * @param refereeInfo
	 * @return
	 */
	int startManualIntervention(ManualIntervention manualIntervention);
	
	
	/**
	  * 结束人工干预信息
	 * @param refereeInfo
	 * @return
	 */
	int endManualIntervention(ManualIntervention manualIntervention);
	
	/**
	  * 删除人工干预信息
	 * @param refereeInfo
	 * @return
	 */
	int deleteManualIntervention(int manualInterventionId);
	
	
	
	/**
	  * 根据场景获得人工干预信息
	 * @param refereeInfo
	 * @return
	 */
	List<ManualIntervention> listManualInterventionByScenes(int scenesResultId);

	/**
	 * web端删除人工干预记录，同事更新场景得分
	 * @param manualInterventionId
	 * @return
     */
	int deleteManualInterventionAfter(int manualInterventionId);
	

	
	
	/**
	 * 获取最近count条场景得分数据
	 * @param count
	 * @return
     */
	List<Map<String,Object>> listManualInterventionByCount(int count, int teamId, String startTime, String endTime);
}
